import axios from "../../utils/axios";

// 获取用户列表
export function getAreaList(query) {
    return axios({
        url: "/goldendays-currency/sysArea/areaList",
        method: "get",
        params: query
    });
}
export function updateMerchantsCertificationInfo(data) {
    return axios({
        url: "/goldendays-user/merchantsMergedCompany/updateMerchantsCertificationInfo",
        method: "post",
        data: data
    });
}

export function getList(data) {
    return axios({
        url: "/goldendays-user/pickUpOrders/getCompanyName",
        method: "get",
        params: data
    });
}
export function getInfo(data) {
    return axios({
        url: "/goldendays-user/merchantsMergedCompany/getMerchantsCertificationInfo",
        method: "get",
        params: data
    });
}

// 获取隶属关系
export function getAuthAdmin(data) {
    return axios({
        url: "/goldendays-user/admin/getAuthAdmin",
        method: "get",
        params: data
    });
}

// /brand/getCountyBrandList 获取全县级品牌
export function getCountyBrandList(data) {
    return axios({
        url: "/brand/getCountyBrandList",
        method: "get",
        params: data
    });
}
// /brand/getCountyBrandList 获取全县级品牌详情
export function getCountyBrandDetail(data) {
    return axios({
        url: "/brand/getCountyBrandDetail",
        method: "get",
        params: data
    });
}

// /togetherBrand/getBrandList 分页获取一级公司列表
export function getBrandList(query) {
    return axios({
        url: "/goldendays-user/togetherBrand/getBrandList",
        method: "get",
        params: query
    });
}
// /togetherBrand/check 查看
export function check(query) {
    return axios({
        url: "/goldendays-user/togetherBrand/check",
        method: "get",
        params: query
    });
}

// merchantsMergedCompany/getMerchantsPartnerList 合伙人管理
export function getMerchantsPartnerList(query) {
    return axios({
        url: "/goldendays-user/merchantsMergedCompany/getMerchantsPartnerList",
        method: "post",
        params: query
    });
}
// /togetherBrand/deleteCompany 删除
export function deleteCompany(query) {
    return axios({
        url: "/goldendays-user/togetherBrand/deleteCompany",
        method: "post",
        params: query
    });
}
// /togetherBrand/getCompanyTree 品牌合伙公司树结构列表
export function getCompanyTree(query) {
    return axios({
        url: "/goldendays-user/togetherBrand/getCompanyTree",
        method: "post",
        params: query
    });
}

// /togetherBrand/getPartnerTree 合伙人树结构列表
export function getPartnerTree(query) {
    return axios({
        url: "/goldendays-user/togetherBrand/getPartnerTree",
        method: "post",
        params: query
    });
}
